package com.mail.autoconfig;


import com.mail.autoconfig.properties.OssProperties;
import com.mail.autoconfig.template.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties(
		OssProperties.class
)
public class MailAutoConfiguration {
	@Bean
	public OssTemplate ossTemplate(OssProperties properties) {
		return new OssTemplate(properties);
	}
}